import React, { useRef, useEffect } from 'react'
import Son from './Son'

export default function Father() {
    const html = useRef()
    useEffect(() => {
        console.log(html.current)
    }, [])
    return (
        <div>
            Father
            <div ref = { html } className='box'>123</div>
            <Son/>
        </div>
    )
}
